package com.lw.json.controller;

import com.lw.json.service.JsonGrammar;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @ClassName: JsonController
 * @Author: lanwei
 * @Date: 2022/12/13 15:48
 */
@RestController
@RequestMapping("/json")
public class JsonController {

    @Autowired
    JsonGrammar jsonGrammar;

    @RequestMapping("/test")
    public ResponseEntity<String> testJson(){
        ResponseEntity<String> stringResponseEntity = jsonGrammar.testJson();
        return stringResponseEntity;
    }
}
